﻿namespace MicroCloud.Identity
{
    /// <summary>
    /// 身份认证模块
    /// </summary>
    [Description("身份认证模块")]
    [DependsOnPacks(typeof(IdentityPack))]
    public class AuthenticationPack : AuthenticationPackBase<User, long, Role, long, Organization, long, UserToken, long>
    {
        #region "方法"
        #region "将模块服务添加到依赖注入服务容器中"
        /// <summary>
        /// 将模块服务添加到依赖注入服务容器中
        /// </summary>
        /// <param name="services">依赖注入服务容器</param>
        /// <returns></returns>
        public override IServiceCollection AddServices(IServiceCollection services)
        {
            services.AddEventHandler<LogoutRemoveRefreshTokenEventHandler>();

            return base.AddServices(services);
        }
        #endregion

        #endregion

    }

}
